package com.huawei123.hasee.mynavigationview_view;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.huawei123.hasee.mynavigationview_view.DrawerLayout_layout.DrawerLayoutActivity;
import com.huawei123.hasee.mynavigationview_view.Palette.PaletteMainActivity;
import com.huawei123.hasee.mynavigationview_view.SnackbarView.SnackbarActivity;
import com.huawei123.hasee.mynavigationview_view.TableLayoutAndViewPage.TabLayoutAndViewPagerActivity;
import com.huawei123.hasee.mynavigationview_view.TextInputLayout_layout.TextInputLayoutActivity;
import com.huawei123.hasee.mynavigationview_view.Toolber_view.ToolberActivity;
import com.huawei123.hasee.mynavigationview_view.property_animation.PropertyAnimationActivity;

public class MainActivity extends AppCompatActivity {

    public Intent intent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        intent = new Intent();
    }

    public void mBT_DrawerLayout(View view) {
        intent.setClass(this, DrawerLayoutActivity.class);
        startActivityForResult(intent, Constant.drawerLayoutRequest);
    }

    public void mBT_Snackbar(View view) {
        intent.setClass(this, SnackbarActivity.class);
        startActivityForResult(intent, Constant.snackbarRequest);
    }

    public void mBT_Toolbar(View view) {
        intent.setClass(this, ToolberActivity.class);
        startActivityForResult(intent,Constant.toolbarRequest);
    }

    public void mBT_TextInputLayout(View view) {
        intent.setClass(this, TextInputLayoutActivity.class);
        startActivityForResult(intent, Constant.textInputLayoutRequest);
    }
    public void mBT_Palette(View view) {
        intent.setClass(this, PaletteMainActivity.class);
        startActivityForResult(intent, Constant.palette);
    }
    public void mBT_TabLayoutAndViewPager(View view) {
        intent.setClass(this, TabLayoutAndViewPagerActivity.class);
        startActivityForResult(intent, Constant.tabLayoutAndViewPager);
    }
    public void mBT_PropertyAnimation(View view) {
        intent.setClass(this, PropertyAnimationActivity.class);
        startActivityForResult(intent, Constant.propertyAnimation);
    }
}
